/**
 * 用户密码修改视图
 */
Ext.define('app.view.staff.User',{
	extend:'Ext.window.Window',
	alias:'widget.user',
	title:'修改密码',
	modal : true,
	bodyPadding:5,
	width:350,
	//layout:'form',
	items:{
		xtype:'form',
		defaults:{		//表单默认属性
			labelSeparator : ": ",
			labelWidth : 80,
			width : 260,
			//allowBlank : false,	//表单不为空
			msgTarget : 'side',
			labelAlign:'right',	//标签右对齐
			//blankText : '不能为空' ,
		},
		margin:5,
		border:false,
		items:[
		       {xtype:'textfield',name:'username',readOnly:true,fieldLabel:'用户名'},
		       {xtype:'textfield',name:'password',fieldLabel:'原密码',inputType:'password'},
		       {xtype:'textfield',name:'newPassword',fieldLabel:'新密码',inputType:'password'},
		       {xtype:'textfield',name:'rePassword',fieldLabel:'确认密码',inputType:'password'},
		]
		},
	buttons:[{
		text:'修改',action:'save'
	},/*{
		text:'批量添加',action:'addAll'
	}*/],	
})


